package com.buka.mapper;

import com.buka.pojo.CinemaHouse;
import org.apache.ibatis.annotations.*;

import java.util.List;


@Mapper
public interface CinemaHouseMapper {

    @Insert("insert into t_cinema_house values(null,#{chName},#{chSeatInfo},#{chCinemaId},1)")
    int add(CinemaHouse cinemaHouse);

    @Select("select * from t_cinema_house where ch_cinema_id =#{cinemaId}")
    List<CinemaHouse> getList(int cinemaId);
}
